package com.globalresources.po;

import java.util.HashSet;
import java.util.Set;

/**
 * Authority entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Authority implements java.io.Serializable {

	// Fields

	private Integer id;
	private String authority;
	private String priority;
	private Set relations = new HashSet(0);
	private Set menus = new HashSet(0);

	// Constructors

	/** default constructor */
	public Authority() {
	}

	/** minimal constructor */
	public Authority(String authority, String priority) {
		this.authority = authority;
		this.priority = priority;
	}

	/** full constructor */
	public Authority(String authority, String priority, Set relations) {
		this.authority = authority;
		this.priority = priority;
		this.relations = relations;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAuthority() {
		return this.authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	public String getPriority() {
		return this.priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	public Set getRelations() {
		return this.relations;
	}

	public void setRelations(Set relations) {
		this.relations = relations;
	}

	/**
	 * @return the menus
	 */
	public Set getMenus() {
		return menus;
	}

	/**
	 * @param menus the menus to set
	 */
	public void setMenus(Set menus) {
		this.menus = menus;
	}

}